<!doctype html>
<html class="no-js">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="description" content="">
		<meta name="keywords" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<title>昆广水泥集团</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="icon" type="image/png" href="i/favicon.png">
		<meta name="mobile-web-app-capable" content="yes">
		<link rel="icon" sizes="192x192" href="i/app-icon72x72@2x.png">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-title" content="Amaze UI" />
		<link rel="apple-touch-icon-precomposed" href="i/app-icon72x72@2x.png">
		<meta name="msapplication-TileImage" content="i/app-icon72x72@2x.png">
		<meta name="msapplication-TileColor" content="#0e90d2">
		<link rel="stylesheet" href="css/amazeui.min.css">
		<link rel="stylesheet" type="text/css" href="css/app.css" />
		<link rel="stylesheet" href="js/loading/jquery.loading.css" type="text/css">
		<script src="js/jquery.min.js"></script>
		<script src="js/jquery/jquery-1.8.3.min.js"></script>
		<script src="js/mui.js"></script>
		<script src="myjs/common.js"></script>
		<script src="myjs/xthd.js"></script>

		<!-- sweetalert start-->
		<script src="js/sweetalert/dist/sweetalert-dev.js"></script>
		<link rel="stylesheet" href="js/sweetalert/dist/sweetalert.css">
		<!-- sweetalert end -->

	</head>

	<body>
		<!--1-->
		<header data-am-widget="header" class="am-header am-header-default ">
			<a onclick="goback();">
				<span class="am-icon-angle-left am-left am-icon-md am-fl"></span>
			</a>
			<h1 class="am-header-title">
       下提货单
      </h1>
			<div class="am-header-right am-header-nav">
				<a href="user.html">
					<span class="am-icon-user am-icon-sm"></span>
				</a>
			</div>
		</header>

		<!--1-->
		<div class="am-cf">
			<button type="button" class="am-btn am-btn-secondary am-btn-block am-btn-kx">
 	<span class="am-fl am-btl">下提货单</span>
 </button>
		</div>

		<!--1-->

		<div class="am-g">
			<form action="" method="post" class="am-form" data-am-validator id="doc-vld-ajax">

				<div class="am-form-group">
					<label for="">订单编号：</label> <input class="am-input-md" type="text" id="billnumber" readonly>
				</div>

				<div class="am-form-group">
					<label for="oc-ds-select-2">客户名称：</label> <input type="hidden" id="c_id" readonly> <input class="am-input-md" type="text" id="clientname" readonly>
				</div>

				<div class="am-form-group">
					<label for="oc-ds-select-3">产品名称：</label> <input type="hidden" id="stockno" /> <input class="am-input-md" type="text" id="stockname" readonly>
				</div>
				<div class="am-form-group" id="tsection">
					<label for="oc-ds-select-3">工程工地：</label> <input class="am-input-md" type="text" id="section" readonly>
				</div>

				<div class="am-form-group">
					<label for="doc-vld-age-2" id="maxnumber1">订单数量:</label> <input type="hidden" id="maxnumber" value="" /> <input type="number" class="am-input-md " id="goodsnumber" onblur="chkvalue(this)" placeholder="输入吨数 ,吨数必须在0到最大吨数之间" required /> <input type="hidden" id="numbermsg" value="" />
				</div>

				<div class="am-form-group">
					<label for="doc-vld-age-2">提货日期：</label> <input type="text" class="am-form-field " value="" id="thrq" onchange="chkDate()" placeholder="选择日期" data-am-datepicker readonly required /> <input type="hidden" id="thrqmsg" value="" />
				</div>

				<div class="am-form-group" id="cheliang">

					<label for="oc-ds-select-4">提货车辆：(必选项)</label>
					<select id="driverid"  data-am-selected="{btnWidth: '100%', btnSize: 'md', btnStyle: 'default', searchBox: 1}" required>
						<option value="-1">--请选择--</option>
					</select>
				</div>
				<div class="am-form-group" id="driveridnumber" hidden="hidden">
					<label for="oc-ds-select-41">司机名称：</label>
					<select id="drivername" required>
						<option value="">--请选择--</option>
					</select>
				</div>

				<div class="am-form-group">
					<label for="oc-ds-select-3">卸货地点：</label>
					<!-- <input type="text" id="stockno" /> -->
					<input class="am-input-md" type="text" id="toaddress" required>
				</div>

				<div class="am-form-group" id="xzhd" hidden>
					<label for="oc-ds-select-3">是否合单：</label>
					<label class="am-radio-inline">
				    <input type="radio" name="pdradio" value="yes" data-am-ucheck onclick="sfpd();">是
				  </label>
					<label class="am-radio-inline">
				    <input type="radio" name="pdradio" value="no" data-am-ucheck checked="checked" onclick="sfpd();"> 否
				  </label>
				</div>

				<div class="am-form-group" id="hday" hidden>
					<label for="oc-ds-select-3">合单单号：</label>
					<select id="hdbillnumber" required>
						<option value="">--请选择--</option>
						<c:choose>
							<c:when test="${not empty shop_client_orders}">
								<c:forEach items="${shop_client_orders }" var="varList">
									<option value="${varList.orderNumber }">${varList.orderNumber } ${varList.section } ${varList.orderType } ${varList.number }吨</option>
								</c:forEach>
							</c:when>
							<c:otherwise>
								<option value="">没有相关数据</option>
							</c:otherwise>
						</c:choose>

					</select>
				</div>

				<button type="button" class="am-btn am-btn-primary am-radius am-fl" onclick="save();">提交</button>
				<button type="button" class="am-btn am-btn-warning am-radius am-fr" onclick="goback();">返回</button>

			</form>
		</div>
<script>
	
</script>
		<!--5-->
		<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
			<div class="am-footer-miscs ">

				<p>由
					<a href="http://www.hnzxtech.com/" title="河南志信" target="_blank" class="">河南志信</a>
					提供技术支持</p>
				<p>版权所有：河南志信科技有限公司 豫ICP备13019378号</p>
			</div>
		</footer>

		<!--5-->

		<!--6-->
		<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " id="">
			<ul class="am-navbar-nav am-cf am-avg-sm-3 am-avg-lg-3">
				<li>
					<a href="index.html">
						<span class="am-icon-home"></span>
						<span class="am-navbar-label">首页</span>
					</a>
				</li>
				<li>
					<a href="gsjj.html">
						<span class="am-icon-qrcode"></span>
						<span class="am-navbar-label">公司简介</span>
					</a>
				</li>
				<li>
					<a href="hzgc.html">
						<span class="am-icon-arrows"></span>
						<span class="am-navbar-label">销售产品</span>
					</a>
				</li>
				<li>
					<a href="lsdd.html">
						<span class="am-icon-eye"></span>
						<span class="am-navbar-label">查看货单</span>
					</a>
				</li>
				<li>
					<a href="user.html">
						<span class="am-icon-user"></span>
						<span class="am-navbar-label">个人中心</span>
					</a>
				</li>

			</ul>

		</div>
		<!--6-->

		<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
			<a href="#top" title="">
				<img class="am-gotop-icon-custom" src="img/s.png" />
			</a>
		</div>
		<script src="js/jquery.min.js"></script>
		<script src="js/amazeui.min.js"></script>

		<script src="js/loading/jquery.loading.js" type="text/javascript"></script>
	</body>

</html>